package gamemodel;

 
public class Coordinate extends Vector2d {
	
	public Coordinate(float x, float y){
		super(x, y); 
	}
	
	public void translate(float dx, float dy){
		this.set(this.x + dx, this.y + dy); 
	}
	
	@Override 
	public String toString(){
		StringBuffer sb = new StringBuffer("x:"); 
		sb.append(this.x); 
		sb.append(" , y:");
		sb.append(this.y); 
		
		return sb.toString();
	}
}
